<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="jquery-3.2.1.min.js"></script>
    <script src="rotate.js"></script>
    <title>轮播图插件</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
        text-decoration: none;
        list-style: none;
    }
    
    .rotate-box {
        margin: 0 auto;
        margin-top: 30px;
        width: 300px;
        height: auto;
        overflow: hidden;
    }
    
    .rotate {
        width: 10000px;
        height: 420px;
        position: relative;
        left: 0;
    }
    
    .rotate li {
        float: left;
    }
    
    .rotate li img {
        width: 300px;
        height: auto;
    }
    
    .btn-left {
        margin-left: 500px;
    }
    
    .btn-right {
        margin-right: 500px;
    }
</style>

<body>
    <div class="rotate-box">
        <ul id="rotate">
            <!--<li><img src="imgs/1.jpg"></li>
            <li><img src="imgs/2.jpg"></li>
            <li><img src="imgs/3.jpg"></li>
            <li><img src="imgs/4.jpg"></li>
            <li><img src="imgs/5.jpg"></li>-->
        </ul>
    </div>
    <button class="btn-left">向左</button> <button class="btn-right">向右</button>
</body>

</html>